
package com.bizfty.api.commons.beans;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
 * 异常信息
 * @author 张森
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FaultInfo", propOrder = {
    "message",
    "reasons",
    "code"
})
public class FaultInfo {
    /**
     * 异常消息
     */
    protected String message;
    /**
     * 异常原因
     */
    @XmlElement(nillable = true)
    protected List<Reason> reasons;
    /**
     * 异常代号
     */
    protected String code;


    public String getMessage() {
        return message;
    }

    public void setMessage(String value) {
        this.message = value;
    }
    
    public List<Reason> getReasons() {
        if (reasons == null) {
            reasons = new ArrayList<>();
        }
        return this.reasons;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String value) {
        this.code = value;
    }

}
